
/**
 * Created by Administrator on 2017/3/1 0001.
 */
export const getguanli = (state, payload) => {
	state.guanli = payload.guanli;
}
export const count1 = (state, payload) => {
	console.log(state.count);
	if (state.count>=5) {
		state.count=5;
	}else{
		state.count = payload.count+1;
	}
}
export const count0 = (state, payload) => {
	console.log(state.count);
	if (state.count!=0) {
		state.count = payload.count-1;	
	}else{
		state.count=0;
	} 
}
